
package com.zhitan.ems.alarm.wrapper;
import com.zhitan.ems.alarm.vo.AlarmRecordsVO;
import com.zhitan.ems.alarm.entity.AlarmRecordsEntity;
import lombok.AllArgsConstructor;
import com.zhitan.ems.common.extra.utils.BeanUtil;
import com.zhitan.ems.framework.core.mp.base.BaseEntityWrapper;
  /**
 *  包装类,返回视图层所需的字段
 * @author zhitan
 * 
 * @date 2025-09-26 21:25:31
 */
public class AlarmRecordsWrapper extends BaseEntityWrapper<AlarmRecordsEntity, AlarmRecordsVO>  {
    public static AlarmRecordsWrapper build() {
        return new AlarmRecordsWrapper();
    }
	@Override
	public AlarmRecordsVO entityVO(AlarmRecordsEntity alarmRecords) {
		if(alarmRecords==null) {
			return null;
		}
		AlarmRecordsVO alarmRecordsVO = BeanUtil.copy(alarmRecords, AlarmRecordsVO.class);
		return alarmRecordsVO;
	}

}
